#include "vltransformcontextwidget.h"

VLTransformContextWidget::VLTransformContextWidget(QWidget *parent) :
    VLContextWidget(parent)
{
    layout = setupLayout();

    nameLabel = createAndAddLabel(layout, tr("TRANSFORM"));
    toggleScale = createAndAddButton(layout,tr("Scale"));
    toggleTranslate = createAndAddButton(layout,tr("Translate"));

    connect(toggleScale,SIGNAL(clicked()),this,SLOT(tgScale()));
    connect(toggleTranslate,SIGNAL(clicked()),this,SLOT(tgTranslate()));

    setDefaults();
}


void VLTransformContextWidget::tgScale()
{
    TOOL_TRANSFORM->toggleScaleMode();
}

void VLTransformContextWidget::tgTranslate()
{
    TOOL_TRANSFORM->toggleTranslateMode();
}
